class AddCanonicalNameForBlogEntries < ActiveRecord::Migration
  def self.up
    add_column :blog_entries, :canonical_title, :string
    
    BlogEntry.find(:all).each do |blog_entry|
      # Force canonical_name refill
      blog_entry.save
    end
  end

  def self.down
    remove_column :blog_entries, :canonical_title
  end
end
